package com.san.dissertation.analytics.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;

import com.san.simulation.model.impl.Model;

/**
 * @author Aruna
 * 
 */

public class ProcessMining implements Serializable {

	private String processName;
	private Map<String, Model> processPath;
	private List<Model> processSequence;

	public String getProcessName() {
		return processName;
	}

	public void setProcessName(String processName) {
		this.processName = processName;
	}

	public Map<String, Model> getProcessPath() {
		return processPath;
	}

	public void setProcessPath(Map<String, Model> processPath) {
		this.processPath = processPath;
	}

	public List<Model> getProcessSequence() {
		return processSequence;
	}

	public void setProcessSequence(List<Model> processSequence) {
		this.processSequence = processSequence;
	}

	public List<String> getProcessPathKey() {

		if (processPath != null) {

			List<String> list=new ArrayList<String>(processPath.keySet());
			Collections.sort(list);
			return list;
			
		}
		return null;
	}

	@Override
	public String toString() {
		return "ProcessMining [processName=" + processName + ", processPath="
				+ processPath + ", processSequence=" + processSequence + "]";
	}

}
